﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;


namespace ClientLOGINGUI
{
	/// <summary>
	/// Interaction logic for Window1.xaml
	/// </summary>
	public partial class Window1 : Window
	{
		public Window1()
		{
			this.InitializeComponent();
			
			// Insert code required on object creation below this point.
		}

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }

        private void Button_MouseEnter(object sender, MouseEventArgs e)
        {
            ButtonExit.Width = 45;
            ButtonExit.Height = 45;
        }

        private void ButtonExit_MouseLeave(object sender, MouseEventArgs e)
        {
            ButtonExit.Width = 35;
            ButtonExit.Height = 35;
        }

        private void ButtonMinimize_MouseEnter(object sender, MouseEventArgs e)
        {
            ButtonMinimize.Width = 40;
            ButtonMinimize.Height = 40;
        }

        private void ButtonMinimize_MouseLeave(object sender, MouseEventArgs e)
        {
            ButtonMinimize.Height = 30;
            ButtonMinimize.Width = 30;
        }

        private void ButtonWorkOffLine_MouseEnter(object sender, MouseEventArgs e)
        {
            ButtonWorkOffLine.Width = 130;
            ButtonWorkOffLine.Height = 130;
        }

        private void ButtonWorkOffLine_MouseLeave(object sender, MouseEventArgs e)
        {
            ButtonWorkOffLine.Width = 110;
            ButtonWorkOffLine.Height = 110;
        }

        private void ButtonWorkOffLine_Click(object sender, RoutedEventArgs e)
        {
            MainGUI.Window1 mainf = new MainGUI.Window1();
            mainf.Show();
            //this.Hide();
        }

        private void ButtonLogin_MouseEnter(object sender, MouseEventArgs e)
        {
            ButtonLogin.Width = 105;
            ButtonLogin.Height = 105;
        }

        private void ButtonLogin_MouseLeave(object sender, MouseEventArgs e)
        {
            ButtonLogin.Width = 90;
            ButtonLogin.Height = 90;
        }

        private void ButtonRetakePassword_MouseEnter(object sender, MouseEventArgs e)
        {
            ButtonRetakePassword.Height = 70;
            ButtonRetakePassword.Width = 70;
        }

        private void ButtonRetakePassword_MouseLeave(object sender, MouseEventArgs e)
        {
            ButtonRetakePassword.Height = 60;
            ButtonRetakePassword.Width = 60;
        }

        private void ButtonMinimize_Click(object sender, RoutedEventArgs e)
        {
            this.WindowState = WindowState.Minimized;
        }


        private void Window_MouseDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        private void ButtonLogin_Click(object sender, RoutedEventArgs e)
        {
            MainGUI.Window1 mg = new MainGUI.Window1();
            mg.Show();
            this.WindowState = WindowState.Minimized;
        }

        private void ButtonRetakePassword_Click(object sender, RoutedEventArgs e)
        {
            RegisterPage.Window1 rg = new RegisterPage.Window1();
            rg.Show();
            this.WindowState = WindowState.Minimized;
        }



	}
}